import React, { Fragment } from 'react';
import Login from '../pages/login'
import Home from '../pages/home'
import Container from '../pages/container/index.js'
import { HashRouter, Route, Switch, Redirect } from 'react-router-dom'


function Routes() {
  return (
    <Fragment>
      <HashRouter>
        <Switch>
          <Route path="/login" component = {Login}></Route>
          <Route path="/" component = {Container}></Route>
          <Route exact path="/" component={Home} />
          <Redirect to={"/home"} />
        </Switch>
      </HashRouter>
    </Fragment>
  );
}

export default Routes;
